<?php
include 'setting.php';
$con = mysqli_connect($sqldatabase, $sqlusername, $sqlpassword,$sqltable);
$result = mysqli_query($con,"SELECT * FROM userdata where checkcode='" . $_COOKIE['check'] . "'");
$is_log = false;
$uid = "";
while ($row = mysqli_fetch_array($result)) {
	$is_log = true;
	$uid = $row["uid"];
	// echo $uid;
}
mysqli_close($con);
?>